﻿using FreeSql;

using Tszy.Unlimited.Data.FreeSQL;

namespace Project2.Domain
{
    public interface IRepository<TDomainModel> where TDomainModel : class
    {
        Task AddAsync(TDomainModel domainModel);
        Task UpdateAsync(TDomainModel domainModel);
        Task RemoveAsync(TDomainModel domainModel);
        //Task<TDomainModel> GetAsync(long identity, string errorMessage = $"获取不到信息");
        ISelect<TDomainModel> Query();
        IFreeSQLRepository<TDomainModel> GetRepository();
    }
}